package cn.wolfcode.crm.mapper;

import cn.wolfcode.crm.domain.Employee;
import cn.wolfcode.crm.query.EmployeeQueryObject;
import org.apache.ibatis.annotations.Param;

import java.util.List;

public interface EmployeeMapper {
    int deleteByPrimaryKey(Long id);

    int insert(Employee entity);

    Employee selectByPrimaryKey(Long id);

    List<Employee> selectAll();

    int updateByPrimaryKey(Employee entity);

    int queryForCount(EmployeeQueryObject qo);

    List<Employee> queryForList(EmployeeQueryObject qo);

    int updateState(@Param("empId") Long id, @Param("state") int state);

    void saveEmployeeRoleRelation(@Param("empId") Long empId, @Param("roleId") Long roleId);

    void deleterEmployeeRoleRelation(Long empId);

    Employee getEmployeeByUsername(String username);
<<<<<<< HEAD

    void updatePassword(Employee employee);
=======
>>>>>>> 524224bf820c6d6da01f752551ee21b728709493
}